package com.synergy.stockflow.warehouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "inventory_transfer_detail")
public class InventoryTransferDetail {
    /**
     * 明细ID
     */
    @TableId(value = "detail_id", type = IdType.ASSIGN_ID)
    @Schema(description="明细ID")
    private String detailId;

    /**
     * 调拨单ID
     */
    @TableField(value = "transfer_id")
    @Schema(description="调拨单ID")
    private String transferId;

    /**
     * 物料ID
     */
    @TableField(value = "material_id")
    @Schema(description="物料ID")
    private String materialId;

    /**
     * 批次号
     */
    @TableField(value = "batch_no")
    @Schema(description="批次号")
    private String batchNo;

    /**
     * 计划调拨数量
     */
    @TableField(value = "plan_quantity")
    @Schema(description="计划调拨数量")
    private BigDecimal planQuantity;

    /**
     * 已出库数量
     */
    @TableField(value = "shipped_quantity")
    @Schema(description="已出库数量")
    private BigDecimal shippedQuantity;

    /**
     * 已入库数量
     */
    @TableField(value = "received_quantity")
    @Schema(description="已入库数量")
    private BigDecimal receivedQuantity;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description="创建时间")
    private Date createTime;
}